import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/list",
    component: () => import("../components/List.vue"),
  },
  {
    path: "/add",
    component: () => import("../components/Designer.vue"),
  },
  {
    path: "/preview",
    component: () => import("../components/Render.vue"),
  },
  {
    path: "/edit",
    component: () => import("../components/SetFormJson.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
